﻿using FolderSync.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FolderSync.EFCore
{
    /// <summary>
    /// 同步数据库上下文
    /// </summary>
    public class SyncDbContext : DbContext
    {
        /// <summary>
        /// 同步信息
        /// </summary>
        public virtual DbSet<SyncInfo>? SyncInfos { get; set; }

        /// <summary>
        /// 文件同步信息
        /// </summary>
        public virtual DbSet<SyncFile>? SyncFiles { get; set; }

        /// <summary>
        /// 同步数据库上下文
        /// </summary>
        /// <param name="options"></param>
        public SyncDbContext(DbContextOptions options) : base(options) { }
    }
}
